package daily;

import java.util.Arrays;
import java.util.Scanner;

/**
 * https://www.lanqiao.cn/problems/168/learning/
 * 
 * @author Jia
 *
 */
public class day3_12_4_wa {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int K = sc.nextInt();
		int[] nums = new int[n];
		for (int i = 0; i < n; i++) {
			nums[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(nums);
		System.out.println(Arrays.toString(nums));
		backTrack(nums, 0, K);
	}

	private static void backTrack(int[] nums, int i, int k) {
		if (i == nums.length) {

		}

	}
}
